home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
os2
/
pvm34b3.zip
/
pvm34b3
/
pvm3
/
pvmgs
/
OS2
/
Makefile.os2
< prev
Wrap
Makefile
|
1997-08-08
|
3KB
|
125 lines
#
# $Id: Makefile.aimk,v 1.8 1997/06/27 13:45:27 pvmsrc Exp $
#
# Generic Makefile body to be concatenated to config header.
#
# Imports:
# PVM_ARCH = the official pvm-name of your processor
# ARCHCFLAGS = special cc flags
# ARCHLIB = special libs needed for daemon
# HASRANLIB = 't' or 'f'
#
# Define:
# NOSTRCASE if libc doesn't have strcasecmp, strncasecmp
# SYSVSIGNAL for system5 signal handling
# SYSVSTR for strchr() instead of index()
#
SHELL = /bin/ksh
PVMDIR = ../..
SDIR = $(PVMDIR)/pvmgs
DOBJ = pvmgs_core.o pvmgs_func.o
LOBJ = pvmgsu_core.o pvmgsu_aux.o pvmgs_func.o
PVMIDIR = $(PVMDIR)/include
PVMSDIR = $(PVMDIR)/src
PVMBDIR = $(PVMDIR)/bin
PVMXDIR = $(PVMBDIR)/$(PVM_ARCH)
PVMLDIR = $(PVMDIR)/lib/$(PVM_ARCH)
PVMLIB = pvm3
PVMLIBDEP = $(PVMLDIR)/$(PVMLIB).a
CFLAGS = $(CFLOPTS) -I$(PVMIDIR) -I$(PVMSDIR) -DIMA_$(PVM_ARCH) \
$(ARCHCFLAGS)
LIBS = $(LOPT) -L$(PVMLDIR) -l$(PVMLIB) $(ARCHLIB)
DIRS = $(PVMXDIR) $(PVMLDIR)
PROGS = $(PVMXDIR)/pvm_gstat$(EXESFX) $(PVMXDIR)/pvmgs$(EXESFX) \
$(PVMXDIR)/pvmgroups$(EXESFX)
install: all
install-mpp: all-mpp
all: $(DIRS) $(PROGS) $(PVMLDIR)/gpvm3.a $(PVMLDIR)/pvmgs$(EXESFX)
all-mpp: $(DIRS) $(PROGS) $(PVMLDIR)/libgpvm3.a-mpp $(PVMLDIR)/pvmgs
$(PVMXDIR):
- mkdir $(PVMBDIR)
- mkdir $(PVMXDIR)
$(PVMLDIR):
- mkdir $(PVMLDIR)
$(PVMXDIR)/pvm_gstat$(EXESFX): pvm_gstat$(EXESFX)
cp pvm_gstat$(EXESFX) $(PVMXDIR)
$(PVMXDIR)/pvmgs$(EXESFX): pvmgs$(EXESFX)
cp pvmgs$(EXESFX) $(PVMXDIR)
$(PVMXDIR)/pvmgroups$(EXESFX): pvmgroups$(EXESFX)
cp pvmgroups$(EXESFX) $(PVMXDIR)
$(PVMLDIR)/gpvm3.a: gpvm3.a
cp gpvm3.a $(PVMLDIR)
case x$(HASRANLIB) in xt ) echo ranlib; ranlib $(PVMLDIR)/gpvm3.a ;; esac
$(PVMLDIR)/libgpvm3.a-mpp: libgpvm3.a-mpp
cp libgpvm3.a $(PVMLDIR)
case x$(HASRANLIB) in xt ) echo ranlib; ranlib $(PVMLDIR)/libgpvm3.a ;; esac
touch $(PVMLDIR)/libgpvm3.a-mpp
$(PVMLDIR)/pvmgs$(EXESFX): pvmgs$(EXESFX)
cp pvmgs$(EXESFX) $(PVMLDIR)
pvmgroups$(EXESFX): pvmgroups.o gpvm3.a $(PVMLIBDEP)
$(CC) $(CFLAGS) -o pvmgroups$(EXESFX) pvmgroups.o gpvm3.a $(LIBS)
pvmgs$(EXESFX): $(DOBJ) $(PVMLIBDEP)
$(CC) $(CFLAGS) -o pvmgs$(EXESFX) $(DOBJ) $(LIBS)
gpvm3.a: $(LOBJ)
rm -f gpvm3.a
$(AR) cr gpvm3.a $(LOBJ)
case x$(HASRANLIB) in xt ) echo ranlib; ranlib gpvm3.a ;; esac
libgpvm3.a-mpp: $(LOBJ)
rm -f libgpvm3.a
$(AR_FRONT) cr libgpvm3.a $(LOBJ)
case x$(HASRANLIB) in xt ) echo ranlib; ranlib libgpvm3.a ;; esac
touch libgpvm3.a-mpp
pvm_gstat$(EXESFX): pvm_gstat.o gpvm3.a $(PVMLIBDEP)
$(CC) $(CFLAGS) -o pvm_gstat$(EXESFX) pvm_gstat.o gpvm3.a $(LIBS)
clean:
rm -f $(DOBJ) $(LOBJ) pvmgs$(EXESFX) gpvm3.a \
pvm_gstat.o pvmgroups.o pvm_gstat$(EXESFX) pvmgroups$(EXESFX)
tidy:
rm -f $(DOBJ) $(LOBJ)
lint:
lint -DARCHCLASS=\"$(PVM_ARCH)\" pvmgs.c > Ld
lint -DARCHCLASS=\"$(PVM_ARCH)\" pvm_gsulib.c > Ll
#
pvmgsu_core.o: $(SDIR)/pvmgsu_core.c
$(CC) $(CFLAGS) -c $(SDIR)/pvmgsu_core.c
pvmgsu_aux.o: $(SDIR)/pvmgsu_aux.c
$(CC) $(CFLAGS) -c $(SDIR)/pvmgsu_aux.c
pvmgroups.o: $(SDIR)/pvmgroups.c
$(CC) $(CFLAGS) -c $(SDIR)/pvmgroups.c
pvm_gstat.o: $(SDIR)/pvm_gstat.c
$(CC) $(CFLAGS) -c $(SDIR)/pvm_gstat.c
pvmgs_core.o: $(SDIR)/pvmgs_core.c
$(CC) $(CFLAGS) -c $(SDIR)/pvmgs_core.c
pvmgs_func.o: $(SDIR)/pvmgs_func.c
$(CC) $(CFLAGS) -c $(SDIR)/pvmgs_func.c
#
# Source File Dependencies
#
include $(PVMDEPPATH)$(SDIR)/pvmdep